package com.ke.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author bochen
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class BaseResp {
    private Integer code;
    private String message;
    private Object data;
    private Long total;

    public BaseResp(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public BaseResp(Integer code, String message, Object data) {
        this.code = code;
        this.message = message;
        this.data = data;
    }
}
